package com.party.core.service.crowdfund;

import com.party.core.model.crowdfund.ProjectComment;
import com.party.core.service.IBaseService;

import java.util.List;
import java.util.Map;

/**
 * 众筹项目服务接口
 * Created by wei.li
 *
 * @date 2017/2/16 0016
 * @time 18:39
 */
public interface IProjectCommentService extends IBaseService<ProjectComment> {
    void deleteByRefId(String refId);

    /**
     * 找到发布者回复支持者的消息列表
     * @param refId 支持id
     * @return
     */
    List<Map<String, String>> findParentComments(String refId);

    /**
     * 找到该条回复的回复列表
     * @param replyId 评论id
     * @return
     */
    List<Map<String, String>> findChildrenComments(String replyId);
}
